import { defineComponent, onMounted } from 'vue'
import { useRoute, useRouter } from 'vue-router'
export default defineComponent({
    name: 'Button',
    setup(props, { slots }) {
        // const route = useRoute()
        const router = useRouter()
        function clickForm() {
            router.push({ path: '/child' })
            console.log(router)
            console.log(123123);
        }
        return () => (
            <>
                <div class='bg-red-500 text-white'>
                    <div>Button组件展示</div>
                    <db-button>默认按钮</db-button>
                </div>
            </>
        )
    }
})
